package com.example.demo.service.impl;

import com.example.demo.mapper.ClazzMapper;

import com.example.demo.pojo.Clazz;
import com.example.demo.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClazzServiceImpl implements ClazzService {
    @Autowired
    private ClazzMapper clazzMapper;


    @Override
    public List<Clazz> getAllClazz() {
        return clazzMapper.getAllClazz();
    }

    @Override
    public List<Clazz> getClazzStudent(Integer id) {
        return clazzMapper.getClazzStudent(id);
    }

//    @Override
//    public List<Clazz> getClazzStudent1(Integer id) {
//        return clazzMapper.getClazzStudent1(id);
//    }
}